package com.ruoyi.project.zerocarbon.domain;

import com.ruoyi.common.utils.NumberUtils;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;

/**
 * 项目评审对象 declare_judge
 * 
 * @author ruoyi
 * @date 2021-07-31
 */
@Data
public class DeclareJudge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 申报id */
    @Excel(name = "申报id")
    private Long declarationId;

    /** 项目类型 */
    @Excel(name = "项目类型")
    private Integer managementType;

    /** 评分等级1 */
    @Excel(name = "评分等级1")
    private Integer grade1;

    /** 评分等级2 */
    @Excel(name = "评分等级2")
    private Integer grade2;

    /** 评分等级3 */
    @Excel(name = "评分等级3")
    private Integer grade3;

    /** 评分等级4 */
    @Excel(name = "评分等级4")
    private Integer grade4;

    private Integer grade5;

    /** 总分 */
    @Excel(name = "总分")
    private Integer score;

    private String realScore;

    /** 专家号 */
    @Excel(name = "专家号")
    private String expertNumber;

    /** 评委 */
    @Excel(name = "专家姓名")
    private String expertName;

    /** 小组（组别） */
    @Excel(name = "小组")
    private String groupName;

    /** 评委用户id */
    @Excel(name = "评委用户id")
    private Long userId;
//    状态（0待评分；1：已评分；2：已提交）
    private Integer status;

    private String remark;

    public void setRealScore(String realScore) {
        this.realScore = NumberUtils.formatInt(this.score);
    }

    public String getRealScore() {
        return NumberUtils.formatInt(this.score);
    }
}
